#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>

#include"head.h"

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
int main(int argc,char* argv[])
 {
/* FILE *fp;
 if((fp=fopen(argv[1],"r"))==NULL)
 {
   printf("/nCannot oen file strike any key exit!");
   getchar();
   exit(1);
 }
	myod(fp);
 fclose(fp);
*/
 char a[100];
 int filefd,i;
 if((filefd = open(argv[1],O_RDONLY))== -1){
     perror(argv[1]);
     exit(1);
  }
  while(read(filefd,a,16) == 16){
    for(i=0;i<16;i++){
        printf("%4c",a[i]);
    }
        for(i=0;i<16;i++){
        printf("%4x",a[i]);
    }
  }
  close(filefd);
  return 0;
}
